const express = require('express');
const dayjs = require('dayjs');

// 导入Student模型模块
const Student = require( '../models/student' );
// 导入用于生成惟一ID的模块
const uid = require( '../config/uid.js' )

const router = express.Router();

router.get( '/student/list' , async (req,resp)=>{
    let array = await Student.findAll();
    resp.json( array );
});

module.exports = router ;